package com.amtf.datafile2.core.txt;

import java.io.File;

import com.amtf.datafile2.DataFile;
import com.amtf.datafile2.cfg.txt.TxtDataFieldDefinition;
import com.amtf.datafile2.cfg.txt.TxtDataTableDefinition;

public class TxtDataFile extends DataFile<TxtDataCatalog, TxtDataTable, TxtDataTableDefinition, TxtDataFieldDefinition> {
	private static final long serialVersionUID = -7200875452550106437L;

	public TxtDataFile(TxtDataTableDefinition definition, String pathname, String charsetName) {
		super(definition, pathname);
		this.dataAccessor = new TxtDataAccessor(new File(pathname), charsetName);
	}

	public TxtDataFile(TxtDataTableDefinition definition, File file, String charsetName) {
		super(definition, file);
		this.dataAccessor = new TxtDataAccessor(file, charsetName);
	}
}
